package com.sdx.console.contract.entity;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.beetl.sql.core.annotatoin.ColumnIgnore;
import org.beetl.sql.core.annotatoin.AutoID;
import org.beetl.sql.core.annotatoin.SeqID;
import org.apache.commons.lang3.StringUtils;
import com.ibeetl.admin.core.util.ValidateConfig;
import com.sdx.service.ConfigService;
import org.beetl.sql.core.TailBean;
import java.math.*;
import com.ibeetl.admin.core.annotation.Dict;
import com.ibeetl.admin.core.entity.BaseEntity;
import org.beetl.sql.core.annotatoin.InsertIgnore;
import org.beetl.sql.core.annotatoin.Version;
import org.beetl.sql.core.annotatoin.LogicDelete;
import com.sdx.common.utils.Utils;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
/*
 *
 * gen by Spring Boot2 Admin 2019-10-31
 */
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
@Data
public class RightCustomerRole extends BaseEntity{
    //授权id
    @NotNull(message = "ID不能为空", groups =ValidateConfig.UPDATE.class)
    @AutoID
    private Integer rightId ;
    //会员id
    private String customerId ;
    //角色id
    private Integer roleId ;
    //租客id
	private Integer tenantId;
    //2、待激活，1、有效，0、失效；权限有效期到期后，会失效，一次性权限使用后会失效，志愿填报和选科vip权限，购买后处于待激活状态，修改高考省份和高考年份后，权限设置有效期并激活
    private Integer rightStatus ;
    //是否一次性权限 1、是，0、否
    private Integer onceOnly ;
    //权限有效期
    private Date expiredDate ;
    //权限生成时间
    private Date createTime ;
    //消耗权限时间 记录一次性权限被消耗的时间，或者权限被激活时间
    private Date useTime ;
    //1、支付购买；2、n码激活体验卡；3、龙卡激活，4、n码激活会员卡 5、一对一合同入单生成的会员，100、系统设置的咨询师
    private Integer rightSource ;
    //关联id 是transationId，激活码或龙卡id，或设置咨询师权限的后台操作id
    private String linkId ;
    //备注
    private String remark ;

    public Integer getRightId() {
        return rightId;
    }

    public void setRightId(Integer rightId) {
        this.rightId = rightId;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public Integer getRightStatus() {
        return rightStatus;
    }

    public void setRightStatus(Integer rightStatus) {
        this.rightStatus = rightStatus;
    }

    public Integer getOnceOnly() {
        return onceOnly;
    }

    public void setOnceOnly(Integer onceOnly) {
        this.onceOnly = onceOnly;
    }

    public Date getExpiredDate() {
        return expiredDate;
    }

    public void setExpiredDate(Date expiredDate) {
        this.expiredDate = expiredDate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUseTime() {
        return useTime;
    }

    public void setUseTime(Date useTime) {
        this.useTime = useTime;
    }

    public Integer getRightSource() {
        return rightSource;
    }

    public void setRightSource(Integer rightSource) {
        this.rightSource = rightSource;
    }

    public String getLinkId() {
        return linkId;
    }

    public void setLinkId(String linkId) {
        this.linkId = linkId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}